﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Eleven_TwoWeek_HD.DAL.Migrations
{
    public partial class kjhrfwkjhkj : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Stores",
                columns: table => new
                {
                    StoresId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StoresName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Stores", x => x.StoresId);
                });

            migrationBuilder.CreateTable(
                name: "Vouchers",
                columns: table => new
                {
                    VouchersId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    VouchersType = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    VouchersName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FVouchersName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    VouchersPhoto = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    VouchersCount = table.Column<int>(type: "int", nullable: false),
                    Evenone = table.Column<int>(type: "int", nullable: false),
                    TiJiao = table.Column<int>(type: "int", nullable: false),
                    JianMian = table.Column<int>(type: "int", nullable: false),
                    StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ShiYong = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Stores = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    VouchersTel = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Vouchers", x => x.VouchersId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Stores");

            migrationBuilder.DropTable(
                name: "Vouchers");
        }
    }
}
